#include "StringResource.h"
#include <QObject>


namespace NewStringTable
{
#define tr(A,B) QObject::tr(A)

	QString strMoneyMarketWidget(int i)
	{
		switch (i)
		{
		case 0: return tr("银银间回购", "IB Repo"); break;
		case 1: return tr("交易所回购", "Exch. Repo"); break;
		case 2: return tr("利率互换", "IRS"); break;
		case 3: return "Shibor"; break;
		case 4: return tr("回购定盘", "Repo Fixing"); break;
		case 5: return tr("银银间回购定盘", "IB Repo Fixing"); break;
		case 6: return tr("公开市场操作", "OMO"); break;
        case 7: return tr("资金", "Funds"); break;
        case 8: return tr("资产", "Assets"); break;
        case 9: return tr("CNEX资金面情绪指数", "CNEX"); break;

		case 100:return tr("今日", "Today"); break;
		case 101:return tr("昨日", "Prev."); break;
		default:break;
		}
		return "";
	}

	QString strMoneyMarketListHead(int i)
	{
		switch (i)
		{
		case 0: return tr("期限", "Tenor");
		case 1: return tr("利率(%)", "Rate(%)");
		case 2: return tr("(±bp)", "(±bp)");
		default: break;
		}
		return "";
	}

    QString strAssetMarketListHead(int i)
    {
        switch (i)
        {
        case 0: return tr("名称", "Name");
        case 1: return tr("现价", "Price");
        case 2: return tr("涨跌", "Change");
        default: break;
        }
        return "";
    }

    QString FixedAssetsIndexId(int index)
    {
        switch (index)
        {
        case 0: {return(tr("IRS FR1Y", "IRS FR1Y")); break; }
        case 1: {return(tr("IRS FR5Y", "IRS FR5Y")); break; }
        case 2: {return(tr("IRS Shi1Y", "IRS Shi1Y")); break; }
        case 3: {return(tr("IRS Shi5Y", "IRS Shi5Y")); break; }
        case 4: {return(tr("000001", "000001")); break; }  //上证指数
        case 5: {return(tr("000300", "000300")); break; }  //沪深300
        case 6: {return(tr("399001", "399001")); break; }  //深证成指
        case 7: {return(tr("DXYFX", "DXYFX")); break; }    //美元指数
        case 8: {return(tr("399006", "399006")); break; }    //创业板指
        case 9: {return(tr("UST10YBO", "UST10YBO")); break; } //10Y美债
        case 10: {return(tr("CLNYM", "CLNYM")); break; }       //WTI原油
        case 11: {return(tr("OILIPE", "OILIPE")); break; }     //布伦特原油
        case 12: {return(tr("FSA50FI", "FSA50FI")); break; }   //富时A50
        case 13: {return(tr("HSIHK", "HSIHK")); break; }   //恒生指数
        case 14: {return(tr("VIXCB", "VIXCB")); break; }   //VIX指数
        default:
            break;
        }
        return "";
    }

	QString strOMOListHead(int i)
	{
		switch (i)
		{
		case 0: return tr("日期", "Date");
		case 1: return tr("方式", "Type");
		case 2: return tr("期限", "Tenor");
		case 3: return tr("利率(%)", "Rate(%)");
		case 4: return tr("投放回笼(亿)", "Size(Bn)");
		default: break;
		}
		return "";
	}
	QString strMMOpenMarketOperator(int i)
	{
		switch (i)
		{
		case 0: return tr("今日净投放(亿):", "Net Money Supply (Bn):"); break;
		case 1: return tr("今日净回笼(亿):", "Net Money Supply (Bn):"); break;
		case 2: return tr("今日", "Today"); break;
		case 3: return tr("(费)", "(fee)"); break;
		case 4: return tr("本周", "This Week"); break;
		case 5: return tr("本月", "This Month"); break;
		case 6: return tr("本周净投放(亿):", "This Week:"); break;
		case 7: return tr("本周净回笼(亿):", "This Week:"); break;
		case 8: return tr("本月净投放(亿):", "This Month:"); break;
		case 9: return tr("本月净回笼(亿):", "This Month:"); break;
		case 10: return tr("仅看今日", "Today Only"); break;
		case 11: return tr("今日净投放(亿):", "Today:"); break;
		case 12: return tr("今日净回笼(亿):", "Today:"); break;

		case 100: return tr("今日", "Today"); break;
		case 101: return tr("昨日", "Prev."); break;
		case 102: return tr("资金", "Money Market"); break;
		case 103: return tr("显示顺序设置", "Display Order Setting"); break;
		case 104: return tr("恢复默认", "Default"); break;
		default:break;
		}
		return "";
	}

	QString strFixedIncomeTreasuryFuturesList(int i)
	{
		switch (i)
		{
		case 0: return tr("合约", "Contract");
		case 1: return tr("最新价(元)", "Last");
		case 2: return tr("涨跌(元)", "Change");
		case 3: return tr("隐含利率(%)", "Implied YTM");
		case 4: return tr("±bp", "±bp");
		case 5: return tr("成交量(手)", "Volume");
		case 6: return tr("持仓量(手)", "Open Interest");
		case 7: return tr("活跃CTD", "Active CTD");
		case 8: return tr("CTD成交(%)", "Trading(CTD)");
		case 9: return tr("基差(元)", "Basis");
		default: break;
		}
		return "";
	}

	QString strFixedIncomeInterestRateBondList(int i)
	{
		switch (i)
		{
		case 0: return tr("发行日", "Auction Date");
		case 1: return tr("债券简称", "Bond Name");
		case 2: return tr("期限", "Tenor");
		case 3: return tr("发行量(亿)", "Issue Size(Bn)");
		case 4: return tr("招标时间", "Time");
		case 5: return tr("加权利率", "Issue Rate");
		case 6: return tr("边际利率", "Marginal Rate");
		case 7: return tr("全场倍数", "Total Multiplier");
		case 8: return tr("边际倍数", "Marginal Multiplier");
		case 9: return tr("缴款日", "Settlement Date");
		case 10: return tr("上市日", "Listing Date");
		case 11: return tr("上期发行(亿)", "Pre.Issue(Bn)");
		default:break;
		}
		return "";
	}

	QString strFixedIncomeTitle(int i) 
	{
		switch (i)
		{
		case 0: return tr("国债期货", "Treasury Futures");
		case 1: return tr("利率债发行", "Gov Bond Issuance");
		case 2: return tr("信用债异常成交", "Credit Bond Mkt Movers");
		default:break;
		}
		return "";
	}

	QString strFixedIncomeViewType(int i)
	{
		switch (i) {
		case 0: return tr("列","");
		case 1: return tr("图","");
		default:break;
		}
		return "";
	}

	QString strFixedIncomeGovBondIssuance(int i)
	{
		switch (i) {
		case 0: return tr("上周", "Last Week");
		case 1: return tr("本周", "This Week");
		case 2: return tr("下周", "Next Week");
		case 3: return tr("上月", "Last Month");
		case 4: return tr("本月", "This Month");
		case 5: return tr("下月", "Next Month");
		case 6: return tr("周", "Week");
		case 7: return tr("月", "Month");
		case 8: return tr("%d期增发", "No.%d Supplementary Issue");
		default:break;
		}
		return "";
	}

	QString strFixedIncomeActiveTab(int i)
	{
		switch (i)
		{
		case 0: return tr("活跃成交", "Most Actives");
		case 1: return tr("涨幅榜", "Top50");
		case 2: return tr("跌幅榜", "Bottom50");
		case 3: return tr("20日首次成交", "20d 1st Trade");
		default: break;
		}
		return "";
	}

	QString strFixedIncomeActiveDeal(int i)
	{
		switch (i)
		{
		case 0: return tr("剩余期限", "Term to Mty");
		case 1: return tr("简称", "Name");
		case 2: return tr("成交笔数", "Trade Count");
		case 3: return tr("平均成交", "Avg. Trade");
		case 4: return tr("昨日平均", "Prev. Avg.");
		case 5: return tr("最高", "High");
		case 6: return tr("最低", "Low");
		default: break;
		}
		return "";
	}

	QString strFixedIncomeTop50AndBottom50(int i)
	{
		switch (i)
		{
		case 0: return tr("简称", "Name");
		case 1: return tr("净价偏离", "Price Deviation(%)");
		case 2: return tr("偏离BP", "Yield Deviation(bps)");
		default: break;
		}
		return "";
	}

	QString strFixedIncome20DayFirstDeal(int i)
	{
		switch (i)
		{
		case 0: return tr("简称", "Name");
		case 1: return tr("价格", "Price");
		case 2: return tr("笔数", "Trade Count");
		case 3: return tr("流动性", "Liquidity");
		case 4: return tr("时间", "Time");
		default: break;
		}
		return "";
	}

	QString strFixedIncomeBondType(int i) 
	{
		switch (i)
		{
		case 0: return tr("全部产品", "All");
		case 1: return tr("利率债", "Price");
		case 2: return tr("短融", "CP/SCP");
		case 3: return tr("中票", "MTN");
		case 4: return tr("企业债", "Enterprise Bond");
		case 5: return tr("公司债", "Corporate Bond");
		case 6: return tr("PPN", "PPN");
		case 7: return tr("NCD", "NCD");
		case 8: return tr("其他", "Others");
		default: break;
		}
		return "";
	}

	QString strFixedIncomeToday()
	{
		return tr("今日", "today");
	}

	QString strFixedIncomeYesterday() {
		return tr("昨日", "yesterday");
	}

	QString strFixedIncomeWeekDay(int i) {
		switch (i) {
		case 0: return tr("星期日", "Sun"); 
		case 1: return tr("星期一", "Mon");
		case 2: return tr("星期二", "Tues");
		case 3: return tr("星期三", "Wed"); 
		case 4: return tr("星期四", "Thur");
		case 5: return tr("星期五", "Fri");
		case 6: return tr("星期六", "Sat");
		default:break;
		}
		return "";
	}

	QString strFixedIncomeQuoteRemark(int i)
	{
		switch (i) {
		case 0: return tr("行权", "YTE");
		case 1: return tr("到期", "YTM");
		default: break;
		}
		return "";
	}

	QString strBondDealMatrix()
	{
		return tr("债券", "Bond");
	}

	QString strBondDealMatrixTab(int i)
	{
		switch (i) {
		case 0: return tr("利率债二级成交", "Gov Bond Trade");
		case 1: return tr("信用债二级成交", "Gredit Bond Trade");
		case 2: return tr("NCD一级报价", "NCD Quotes in Primary Mkt");
		case 3: return tr("NCD二级成交", "NCD Trade");
		default: break;
		}
		return "";
	}

	QString strFixedIncomeRateBondFiltrCrd(int i)
	{
		switch (i)
		{
		case 0: return tr("国债","CGB");
		case 1: return tr("国开","CDB");
		case 2: return tr("口行","Exim");
		case 3: return tr("农发","ADBC");
		case 4: return tr("地方债","Muni");
		case 5: return tr("总供给","Sum");
		case 6: return tr("(亿)","Bn");
		default: break;
		}
		return "";
	}

	QString strFixedNatChart(int i)
	{
		switch (i){
		case 0: return tr("合约", "Contract");
		case 1: return tr("时间", "Time");
		case 2: return tr("价格", "Price");
		case 3: return tr("成交量", "Volume");
		case 4: return tr("持仓量", "Open Int.");
		default: break;
		}
		return "";
	}

	QString strCapitalMarketOMOSetting(int i)
	{
		switch (i)
		{
		case 0: return tr("公开市场操作：净投放/净回笼计算设置", "Net Money Supply Setting");
		case 1: return tr("+ 逆回购-逆回购到期-正回购+正回购到期", "+ Reverse Repo - Reverse Repo Maturity - Repo + Repo Maturity");
		case 2: return tr("+ 国库定存-国库定存到期", "+ Treasury Time Deposit - Treasury Time Deposit Maturity");
		case 3: return tr("- 央票发行+央票到期", "- Central Bank Bill + Central Bank Bill Maturity");
		case 4: return tr("+ SLO投放-SLO投放到期-SLO回笼+SLO回笼到期", "+ SLO Funds Injection - SLO Funds Injection Maturity - SLO Funds Withdrawal + SLO Funds Withdrawal Maturity");
		case 5: return tr("+ MLF操作量", "+ MLF Size");
		case 6: return tr("+ TMLF操作量", "+ TMLF Size");
		case 7: return tr("+ CBS操作量", "+ CBS Size");
		case 8: return tr("净投放/净回笼=", "Net Money Supply =");
		default:break;
		}
		return "";
	}

	QString	strMatrixSettingDiff(int i)
	{
		switch (i)
		{
		case 0: return tr("期限设置", "Tenor");
		case 1: return tr("涨跌bp", "Change (bps)");
		case 2: return tr("数据展示设置", "Display");
		default:
			break;
		}
		return "";
	}

	QString strBDMatrixerm(int i)
	{
		switch (i)
		{
		case 0: return tr("设置", "Setting");
		case 1: return tr("利率债", "Gov Bond");
		case 2: return tr("信用债", "Credit Bond");
		case 3: return tr("NCD", "NCD");
		case 4: return tr("确定", "OK");
		case 5: return tr("取消", "Cancel");
		case 6: return tr("请保证左边期限小于右边期限", "he period on the left cannot be less than the right\n one.");
		case 7: return tr("共计", "rade Count:");
		case 8: return tr("笔", "");
		case 9: return tr("最大成交", "Max:");
		case 10: return tr("最小成交", "Min:");
		case 11: return tr("平均成交", "Avg:");
		case 12: return tr("超长期限", ">=12Y");
		case 13: return tr("临到期", "<15D");
		case 14: return tr("大于半年", ">=6M");
		case 15: return tr("截屏", "ScreenShot");
		case 16: return tr("NCD二级成交", "NCD rade");
		case 17: return tr("右侧期限不应大于下一级左侧期限", "enor end to be no larger than the tenor start of next level.");
		default:
			break;
		}
		return "";
	}
	
	QString strFixedScrMatrixIntCol(int i)
	{
		switch (i)
		{
		case 1: return tr("1Y:", "1Y:");
		case 2: return tr("2Y:", "2Y:");
		case 3: return tr("3Y:", "3Y:");
		case 4: return tr("5Y:", "5Y:");
		case 5: return tr("7Y:", "7Y:");
		case 6: return tr("10Y:", "10Y:");
		case 7: return tr("15Y:", "15Y:");
		case 8: return tr("20Y:", "20Y:");
		case 9: return tr("30Y:", "30Y:");
		case 10: return tr("50Y:", "50Y:");
		case 11: return tr("超长:", "≥10Y:");
		default: break;
		}
		return "";
	}

	QString strFixedScrMatrixCrdCol(int i)
	{
		switch (i)
		{
		case 0: return tr("评级", "");
		case 1: return tr("1M:", "1M:");
		case 2: return tr("3M:", "3M:");
		case 3: return tr("6M:", "6M:");
		case 4: return tr("1Y:", "1Y:");
		case 5: return tr("2Y:", "2Y:");
		case 6: return tr("3Y:", "3Y:");
		case 7: return tr("4Y:", "4Y:");
		case 8: return tr("5Y:", "5Y:");
		case 9: return tr("7Y:", "7Y:");
		case 10: return tr("10Y:", "10Y:");
		default: break;
		}
		return  "";
	}

	QString  strFixedScrMatrixNCDTradeCol(int i)
	{
		switch (i)
		{
		case 0: return tr("评级", "Ratings");
		case 1: return tr("临到期:", "临到期:");
		case 2: return tr("1M:", "1M:");
		case 3: return tr("2M:", "2M:");
		case 4: return tr("3M:", "3M:");
		case 5: return tr("6M:", "6M:");
		case 6: return tr("9M:", "9M:");
		case 7: return tr("1Y:", "1Y:");
		default: break;
		}
		return "";
	}
}


